<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增APP账号')"/>
    <th:block th:include="include :: datetimepicker-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-proxyUser-add">


        <input type="hidden" th:value="${projectId}" name="accountId">


        <div class="form-group">
            <label class="col-sm-3 control-label is-required">APP登录手机号：</label>
            <div class="col-sm-8">
                <input name="phone" class="form-control" type="text" required>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label is-required">真实姓名：</label>
            <div class="col-sm-8">
                <input name="trueName" class="form-control" type="text" required>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">是否员工：</label>
            <div class="col-sm-8">
                <select name="isStaff" class="form-control m-b"
                        th:with="type=${@dict.getType('sys_proxy_user_is_staff')}">
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                </select>
            </div>
        </div>


    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<script th:inline="javascript">
    var prefix = ctx + "system/project"
    $("#form-proxyUser-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/addAccount", $('#form-proxyUser-add').serialize());
        }
    }
</script>
</body>
</html>